<!--激活人员-->
<template>
  <div>
    <ul>
      <li class="firstLi">
        <div>
          姓名
        </div>
        <div>
          职位
        </div>
        <div>
          手机号
        </div>
        <div>
          部门
        </div>
        <div>
          添加时间
        </div>
      </li>
      <li class="dataLi" v-for="(item,index) in dataLists" :key="index">
        <div>{{item.memberName | strFun}}</div>
        <div>{{item.posiName | strFun}}</div>
        <div>{{item.mobile | strFun}}</div>
        <div>{{item.deptNames | deptNamesFun}}</div>
         <div>{{item.createTime | timeFun}}</div>
      </li>
    </ul>
  </div>
</template>
<script>
import { mapActions } from "vuex";
export default {
  props: ["dataLists"],
  components: {},
  data() {
    return {};
  },
  created: function() {},
  mounted() {},
  methods: {},
  filters: {
    deptNamesFun(val) {
      if (val) {
        return val.toString();
      } else {
        return "无";
      }
    },
    activeFun(val) {
      if (val == "ACTIVE") {
        return "已激活";
      } else if (val == "INACTIVE") {
        return "未激活";
      } else {
        return "暂无";
      }
    },
    timeFun(val) {
      if (val && val != 0) {
        var standardTime = new Date(val * 1);
        var y, m, d, h, f, s;
        y = standardTime.getFullYear();
        m = standardTime.getMonth() + 1;
        m = m > 9 ? m : "0" + m;
        d = standardTime.getDate();
        d = d > 9 ? d : "0" + d;
        h = standardTime.getHours();
        h = h > 9 ? h : "0" + h;
        f = standardTime.getMinutes();
        f = f > 9 ? f : "0" + f;
        s = standardTime.getSeconds();
        s = s > 9 ? s : "0" + s;
        return y + "-" + m + "-" + d;
      } else {
        return "暂无";
      }
    },
    typeFun: function(val) {
      if (val == 1) {
        return "部门";
      } else {
        return "人员";
      }
    },
    strFun: function(val) {
      if (val) {
        return val;
      } else {
        return "暂无";
      }
    },
    weekFun(val) {
      if (val == 7) {
        return "日";
      } else if (val == 1) {
        return "一";
      } else if (val == 2) {
        return "二";
      } else if (val == 3) {
        return "三";
      } else if (val == 4) {
        return "四";
      } else if (val == 5) {
        return "五";
      } else if (val == 6) {
        return "六";
      }
    }
  },
  watch: {}
};
</script>
<style scoped>
.firstLiSelect > div {
  height: 50px;
}

.firstLi {
  background-color: #f4f4f6;
}

.firstLi,
.dataLi {
  display: flex;
  width: 100%;
  height: 50px;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
}
.firstLi > div:nth-child(3),
.dataLi > div:nth-child(3) {
  width: 15%;
}

.firstLi > div:nth-child(5),
.dataLi > div:nth-child(5) {
  width: 15%;
}
.firstLi > div:nth-child(4),
.dataLi > div:nth-child(4) {
  width: 40%;
}
.firstLi > div,
.dataLi > div {
  width: 15%;
  text-align: center;
  height: 50px;
  line-height: 50px;
  /* display: flex;
  align-items: center;
  justify-content: center; */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis
}
.lastLi {
  height: 60px;
  display: flex;
  justify-content: space-between;
  margin: 35px 0;
}

.signManageSearchRightSearch {
  width: 70px;
  height: 34px;
  cursor: pointer;
  border-radius: 3px;
  background-color: #288df0;
  text-align: center;
  line-height: 34px;
  color: #fff;
  margin-right: 15px;
}

.listLoglistMainOPent {
  width: 100%;
  height: 35px;
  display: flex;
  justify-content: flex-end;
  border: 1px solid red;
}

.searchLogListLiRightSelect select {
  width: 150px;
  height: 30px;
  border: 1px solid #38adff;
  border-radius: 3px;
  line-height: 30px;
  padding-left: 7px;
}

.searchLogListLiRightSelect {
  width: 180px;
  height: 30px;
  border-radius: 3px;
  line-height: 30px;
}

.searchLogListLiRightPeo {
  width: 250px;
  height: 30px;
  border: 1px solid #38adff;
  border-radius: 3px;
  line-height: 30px;
  padding-left: 7px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.searchLogListLiRightTime > div:nth-child(2) {
  margin-left: 10px;
}

.searchLogListLiRightTime {
  display: flex;
}

.searchLogListLiLeft {
  width: 80px;
  text-align: right;
  margin-right: 15px;
}

.searchLogListLi {
  display: flex;
  width: 55%;
  height: 35px;
  float: left;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 10px;
}

.searchLogList {
  margin-top: 30px;
  height: 75px;
  width: 100%;
}

.listLoglistMain {
  margin-top: 10px;
  min-height: 190px;
  width: 100%;
  border: 1px solid #ccc;
}
</style>